// create EventEmitter
exports.timer = new process.EventEmitter();

// emit event
setInterval(function() {
  exports.timer.emit('tick');
}, 1000);